package logic

import (
	product "0507zk/common/proto"
	"0507zk/rpc/sever"
	"context"
)

type Service struct {
	product.UnimplementedProductServer
}

func (s Service) SendSms(ctx context.Context, in *product.SendSmsReq) (*product.SendSmsResp, error) {
	sms, err := sever.SendSms(in)
	if err != nil {
		return nil, err
	}
	return sms, nil
}
func (s Service) UserLogin(ctx context.Context, in *product.UserLoginReq) (*product.UserLoginResp, error) {
	user, err := sever.UserLogin(in)
	if err != nil {
		return nil, err
	}
	return user, nil
}
func (s Service) ProductList(ctx context.Context, in *product.ProductListReq) (*product.ProductListResp, error) {
	user, err := sever.Product(in)
	if err != nil {
		return nil, err
	}
	return user, nil
}
